<?php
class SkillsModule extends Module {
	public function index() {
		redirect(WEB_ROOT);
	}
	
	public function tree($para) {
		redirect(WEB_ROOT);
		$arr = array();
		
		$model = new SkillModel();
		$allSkills = $model->getAllSkills();
		
		foreach ($allSkills as $row) {
			$arr[] = new $row['handler'];
		}
		
		$this->set('skills', $arr);
		$this->render('skilltree');
	}
}
